package oi;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class Demo4 {
    public static void main(String[] args) throws IOException {
        Reader reader = new FileReader("d:/test.txt");

        while (true){
            int n = reader.read();
            if (n == -1){
                break;
            }
            char ch = (char)n;
            System.out.println(ch);
        }
    }
}
